Assessment Platform

With the Assessment Platform you can run your assessment on measurement files without executing the tests. You can either use a single measurement file for the complete assessment. Or you can use for every test case a different measurement file.

You need at least one test case for each measurement file that will serve as a container for the assessment. The measurement file can be a TPTBIN file or any external measurement file. The following file formats for external measurement files are supported: CSV, TPTBIN, XSLX, XLS, MAT, MF4, MDF, DAT, ACSV.

You can import the file comment of a header block from an MDF file to a measurement signal as string. To do so, open the TPT Tool Preferences of your project (Options|Preferences|<project name>|MDF) and select Import file comment from header block, see File comment.

To create an assessment platform, select Execution|Platform Configuration. Click Create a platform configuration and select Assessment Platform.

Assessment Platform configuration dialog

VM settings

Step size [s]

Specifies the sampling time. A constant time between one simulation step and the subsequent one.

Assessment Platform settings

Mapping

Optionally, a mapping in the Assessment Platform Settings section can be selected to map the signals from the measurement file to the signals defined in TPT, see Declarations - Mappings. You can also import a mapping using the Import Interface Wizard, see Declarations - Import Interface.

The measurement data imported from the configured measurement file of the test case will be dejittered to the grid of the step-size set in the assessment platform configuration.

System constants can be used in the platform configuration, see Signal Types - Constant.

One measurement file for all test cases

To use the same measurement file for all test cases, enter the path to this file in the Assessment Platform configuration under Shared Measurement file. The file path can be set relative to the TPT project. Select the checkbox Automatically create and export all signals contained in the measurement file if you want all signals to be available in the assessment.

Different measurement files for each test case

There are two ways to assess one measurement file for one test case and another for another test case. You can either use $ variables or add the measurement files to the test case details of each test case.

Attach a measurement file to the test case details:

You can add as many test case attributes of the type File as you like, see Test Case Details - Attach a File. But you can only select one attribute in the Assessment Platform configuration. The files attached to this attribute will be used for the assessment. From the Measurement file attribute list, select a test case attribute name where the measurement file has been attached. In case you have several

Select the test case attributes

If you additionally add a Shared measurement file, this shared measurement file will be used for the assessment instead of the measurement files added to individual test cases.

When you load TPT files created in TPT 8. TPT 9, TPT 10, TPT 11, or TPT 12, and measurement files have been added, TPT automatically adds the Test Case Details attribute "Measurement File" and places the measurement file links in there. If the project also contains an Assessment Platform, the attribute "Measurement File" will be automatically selected in the Measurement file attribute of the Assessment Platform.

Use $-variables:

The $-variables available are listed when you enter ${ in the Shared measurement file field and press Ctrl+Space. You can use environment variables, see Environment Variables, test case-specific variables, see Test Case-specific Variables, global and project-specific variables created by the user, see Global Variables and Project-specific Variables. The path to the measurement files can be absolute or relative to the TPT project file.

Example 1

You create a folder named data and place it next to the TPT project file. Then you add all your measurement files in that data folder. In the Shared measurement file field you enter data\${tpt.scenario.name}.csv so TPT looks in the folder data for CSV files only and finds the CSV file that shares the same name with the test case to be executed.

Example 2

You form your test cases in two groups, named measurement_A and measurement_B. The names are identical to the names of the measurement files. Then, you enter in the Shared measurement file field data\${tpt.scenario.groupname}.mdf, so TPT runs all test cases of the group measurement_A with the measurement file measurement_A.mdf and all the test cases of the group measurement_B with the measurement file measurement_B.mdf.

Run the assessment

To run the assessment, select Execution|Execution Configuration. Select the Assessment Platform in the Platform section and click Run. The specified measurement files are loaded as test data. The assessment is run on this test data as usual.

The Step List Assesslet will not executed because no test execution takes place.

Parameters that are defined in the TPT project (for example in the Initial Values view) can be used in the assessment. In case parameters are also available in the measurement file, the values from the Initial Values view are overwritten with the values from the measurement file.